package org.dce.screencapturer.actions.ui;

import java.awt.event.ActionEvent;

import javax.swing.undo.CannotUndoException;

import org.dce.screencapturer.actions.ScreenCapturerAction;
import org.dce.screencapturer.util.IconFactory;

@SuppressWarnings("serial")
public class RedoAction extends ScreenCapturerAction {

	public RedoAction(){
		super("categories.edit","actions.redo",IconFactory.getIcon("/images/edit-redo.png"));
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		try {
			getUI().getUndoManager().redo();
		}catch (CannotUndoException ex){ex.printStackTrace();}
	}

}
